package com.easyboot.framework.domain;

import java.io.Serializable;
import java.util.Hashtable;

public class ResultAdaptDto implements Serializable{

    /**
     *
     */
    private static final long serialVersionUID = -8599444078614911848L;

    private boolean status;
    private String message;
    private int code;
    private Hashtable<String,Object> data;

    public ResultAdaptDto(){
        status=true;
        data=new Hashtable<>();
    }
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String msg) {
        this.message = msg;
    }

    public Hashtable<String, Object> getData() {
        return data;
    }

    public void setData(Hashtable<String, Object> data) {
        data = data;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public boolean isStatus() {
        return status;
    }

    public void put(String key,Object val){
        data.put(key,val);
    }
}
